import store from '@/store'
import { getAuditOrderList,getSemiFinishProductList} from "@/api/product"
import {getCompanyName} from '@/api/user'

//msg_shenhe
export function getshenhemsg(){
    get_AuditOrder()
    setInterval(() => {
        get_AuditOrder()
    },100000);
}


// 获取可审核数量
function get_AuditOrder(){
    getIndexHeaderData().then((res) => {
        if (res.code == 200) {
          store.state.app.msglist.shenhemsg=res.data.to_be_reviewed
          store.state.app.msglist.banchengpinmsg=res.data.pending_acceptance_order_nunber
        }
      });
}




export function getname(){
    getCompanyName().then(res=>{
            console.log(res)
    })
}

